export function getTasakiBookApi(vm) {
    let getTasakiBookApi = {
        // 保存用户信息
        setInfo: (params = {}) =>
            vm.$u.post(
                `setInfo`,
                params, {
                    "content-type": "application/x-www-form-urlencoded"
                }
            ),
        // 抽奖
        choujiang: (params = {}) =>
            vm.$u.post(
                `draw`,
                params, {
                    "content-type": "application/x-www-form-urlencoded"
                }
            ),
        // 抽奖地址
        setAddress: (params = {}) =>
            vm.$u.post(
                `setAddress`,
                params, {
                    "content-type": "application/x-www-form-urlencoded"
                }
            ),
        // 抽奖地址
        addShare: (params = {}) =>
            vm.$u.post(
                `addShare`,
                params, {
                    "content-type": "application/x-www-form-urlencoded"
                }
            ),
        // 获取奖品列表
        getPrizes: (params = {}) =>
            vm.$u.post(
                `getPrizes`,
                params, {
                    "content-type": "application/x-www-form-urlencoded"
                }
            )
    };
    return getTasakiBookApi;
}